<?php
$title = 'Lista de Permisos';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>

<br>
<p>
   <a href="<?php echo $this->url('permisos', array('action'=>'agregar'));?>">Agregar nuevo permiso</a>
</p>

<table class="table">
<tr>
   <th>Modulo</th>
   <th>Accion</th>
   <th>&nbsp;</th>
</tr>
<?php foreach ($permisos as $permiso) : ?>
<tr>
   <td><?php echo $this->escapeHtml($permiso->modulo);?></td>
   <td><?php echo $this->escapeHtml($permiso->accion);?></td>
   <td>
      <a href="<?php echo $this->url('permisos',
              array('action'=>'editar', 'id' => $permiso->id));?>">Editar</a>
      <a href="<?php echo $this->url('permisos',
              array('action'=>'eliminar', 'id' => $permiso->id));?>">Eliminar</a>

   </td>
</tr>
<?php endforeach; ?>
</table>

<a href="/roles"><- atras</a>
